#define _CRT_SECURE_NO_WARNINGS 1


class Solution
{
public:

    int firstUniqChar(string s)
    {
        int  flag = 0;
        for (int i = 0; i < s.size(); i++)
        {
            for (int j = 0; j < s.size(); j++)
            {
                if ((s[i] == s[j]) && (i != j))
                {
                    flag = 1;
                    break;

                }


            }

            if (flag == 0)
            {
                return i;
            }

            flag = 0;
        }

        return -1;
    }


};